import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// tsparticles/vue2 库
import Particles from '@tsparticles/vue2'
import { loadFull } from 'tsparticles'
import { loadSlim } from '@tsparticles/slim'

// 引入element-ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

Vue.config.productionTip = false
// Element-ui
Vue.use(ElementUI)
// 注册 tsparticles/vue2 库的组件
Vue.use(Particles, {
  init: async (engine) => {
    await loadFull(engine)
    await loadSlim(engine)
  },
})
new Vue({
  router,
  store,
  ElementUI,
  render: (h) => h(App),
}).$mount('#app')
